package com.doxiaopu.students.organization.mapper;

import com.doxiaopu.students.organization.entity.Organization;
import com.doxiaopu.students.organization.vo.OrganizationVO;

import java.util.List;

public interface OrganizationMapper {
    /**
     * 常见社联
     * @param organization
     * @return
     */
    Integer addOrganizationByCouncil(Organization organization);

    /**
     * 获得社联列表
     * @param organizationVO
     * @return
     */
    List<Organization> getOrganizationList(OrganizationVO organizationVO);

    /**
     * 获得社联列表的总条数
     * @param organizationVO
     * @return
     */
    Integer getOrganizationListTotal(OrganizationVO organizationVO);

    /**
     * 获取社联列表
     * @param organizationVO
     * @return
     */
    List<Organization> getAPPOrganizationList(OrganizationVO organizationVO);

    /**
     * 审核通过社团申请
     * @param organization
     * @return
     */
    Integer updateApplicationStatus(Organization organization);

    /**
     * 通过massOrganizationId查询累计返利订单和余额
     * @param massOrganizationId
     * @return
     */
    Organization findOrganizationBymassOrganizationId(String massOrganizationId);

    /**
     * 编辑余额和累计订单
     * @param organization
     * @return
     */
    Integer updateOrganization(Organization organization);
}
